cmake_minimum_required(VERSION 3.1.0)

include($ENV{ROOT_DIR}/src/module.cmake)

#设置添加得Qt库文件
set(QT_LIBRARY_LIST Widgets Core Gui Sql Network Concurrent)

message(STATUS "${CURRENT_FOLDER} alreadly build staring")
string(REGEX REPLACE ".*/(.*)" "\\1" CURRENT_FOLDER ${CMAKE_CURRENT_SOURCE_DIR})
#调用module中的函数
QT_VTK_Project(${CURRENT_FOLDER} "DLL")
# 安装事件，路径为：-DCMAKE_INSTALL_PREFIX=%ROOT_DIR%/install
install(TARGETS ${CURRENT_FOLDER}
        EXPORT ${CURRENT_FOLDER}
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        PUBLIC_HEADER DESTINATION include)


